package ClassPractice;

public class Test {
    public static void main(String[] args) {
        Circle circle = new Circle(2);
        Geometry geometry = new Rectangle(4,5);//向下转型
        double s1 = circle.getArea();
        double s2 = geometry.getArea();
        System.out.println("圆的面积："+s1);
        System.out.println("矩形的面积："+s2);
    }
}
